mysql trigger does not work if value is null

welcome to shbcf.ru